import http from "../utils/http";
export default {
    address(id) {
        return http.get("/member/address/"+id)
    },
    add(city, defaultStatus, detailAddress, id, memberId, name, phoneNumber, postCode, province, region) {
        return http.post("/member/address/add" , { city, defaultStatus, detailAddress, id, memberId, name, phoneNumber, postCode, province, region })
    },
    delete(id) {
        return http.post("/member/address/delete/" + id)
    },
    list() {
        return http.get("/member/address/list")
    },
    update(city, defaultStatus, detailAddress, id, memberId, name, phoneNumber, postCode, province, region) {
        return http.post("/member/address/update/"+id, {city, defaultStatus, detailAddress, memberId, name, phoneNumber, postCode, province, region})
    }
}